<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">
    <meta content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no, width=device-width"
          name="viewport">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- <script src="//cdn.bootcss.com/eruda/1.2.0/eruda.min.js"></script>
    <script>
        window.onload = function(){
            var el = document.createElement('div');
            document.body.appendChild(el);
            eruda.init({
                container: el,
            });
        }
    </script> -->
    <link rel="icon" href="/Public/projects/activity/favicon.ico">
    <title>
        第十九届浙江投资贸易洽谈会--注册
    </title>
    <link href="/Public/projects/activity/mobile/style/magic-check.min.css" rel="stylesheet">
    <link href="/Public/projects/activity/mobile/style/base.css" rel="stylesheet">
    <link href="/Public/projects/activity/mobile/style/index.less?v=2" rel="stylesheet/less">
    <script src="/Public/projects/activity/mobile/js/less.js"></script>
    <style>
        html,body{
            font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
        }
        nav.nav-group{
            position: fixed;
        }
        nav.nav-group .text p{
            font-size: 1.4rem;
            margin-bottom:0.8rem;
            margin-top: 6px;
        }
    </style>
</head>
<body>

<div class="content-wrapper">
    <div class="head">
        <img src="/Public/projects/activity/mobile/img/head2.png?v=5">
    </div>
    <div class="title">
        <div class="text h-center v-center">
            <p>论坛观众注册表</p>
            <p>Sign Up Now</p>
        </div>
    </div>
    <div class="content">
        <div class="info">
            <div class="base-chunk">
                <div class="layout-item-ab desc-text">
                    <div class="item-a w-3">
                        <span class="desc">姓名 / Name</span>
                    </div>
                    <div class="item-b w-7">

                        <div class="layout-item-ab text">
                            <div class="text-input item-a w-7">
                                <input type="text" id="name-1">
                            </div>
                            <div class="tips item-b w-5">
                                <span>（必填 required）</span>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="layout-item-ab desc-cb-group">
                    <div class="item-a w-3">
                        <span class="desc">选择证件/ Certificates</span>
                    </div>
                    <div class="item-b w-7">
                        <div class="layout-item-ab text cb-group" id="certificate-1">
                            <div class="cb-row">
                                <div class="cb-item v-center item-a w-5">
                                    <input checked class="magic-radio" type="checkbox" name="cb" id="certificate-id1" data-value="0"/>
                                    <label for="certificate-id1">身份证 / ID</label>
                                </div>
                                <div class="cb-item v-center item-b w-7">
                                    <input class="magic-radio" type="checkbox" name="cb" id="certificate-passport1" data-value="1"/>
                                    <label for="certificate-passport1">护照 / Passport</label>
                                </div>
                                <div class="tips item-b w-5">
                                    <!-- <span>（必填 required）</span> -->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layout-item-ab desc-text">
                    <div class="item-a w-3">
                        <span class="desc">证件号 / Number</span>
                    </div>
                    <div class="item-b w-7">

                        <div class="layout-item-ab text">
                            <div class="text-input item-a w-7">
                                <input type="text" id="number-1">
                            </div>
                            <div class="tips item-b w-5">
                                <span>（必填 required）</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layout-item-ab desc-text">
                    <div class="item-a w-3">
                        <span class="desc">国籍 / Nationality</span>
                    </div>
                    <div class="item-b w-7">

                        <div class="layout-item-ab text">
                            <div class="text-input item-a w-7">
                                <input type="text" id="nationality-1">
                            </div>
                            <div class="tips item-b w-5">
                                <span>（必填 required）</span>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="layout-item-ab desc-text">
                    <div class="item-a w-3">
                        <span class="desc">职务 / Position</span>
                    </div>
                    <div class="item-b w-7">

                        <div class="layout-item-ab text">
                            <div class="text-input item-a w-7">
                                <input type="text" id="position-1">
                            </div>
                            <div class="tips item-b w-3">
                                <!--<span>（必填）</span>-->
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layout-item-ab desc-cb-group">
                    <div class="item-a w-3">
                        <span class="desc">称谓 / Gender</span>
                    </div>
                    <div class="item-b w-7">
                        <div class="layout-item-ab text cb-group" id="appellation-1">
                            <div class="cb-row">
                                <div class="cb-item v-center item-a w-5">
                                    <input checked class="magic-radio" type="checkbox" name="cb" id="sex-m-1" data-value="0"/>
                                    <label for="sex-m-1">先生 Mr</label>
                                </div>
                                <div class="cb-item v-center item-b w-7">
                                    <input class="magic-radio" type="checkbox" name="cb" id="sex-w-1" data-value="1"/>
                                    <label for="sex-w-1">女士 Mrs / Miss</label>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="add-more button ">
                    <span class="ico">+</span>
                    <span class="text v-center">添加多人</span>
                </div>
            </div>
            <div class="option-chunk">
                <div class="option-chunk-bg"></div>
                <div class="layout-item-ab desc-text">
                    <div class="item-a w-3">
                        <span class="desc">姓名 / Name</span>
                    </div>
                    <div class="item-b w-7">

                        <div class="layout-item-ab text">
                            <div class="text-input item-a w-7">
                                <input type="text" id="name-2">
                            </div>
                            <div class="tips item-b w-5">
                                <span>（必填 required）</span>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layout-item-ab desc-cb-group">
                    <div class="item-a w-3">
                        <span class="desc">选择证件/ Certificates</span>
                    </div>
                    <div class="item-b w-7">
                        <div class="layout-item-ab text cb-group" id="certificate-2">
                            <div class="cb-row">
                                <div class="cb-item v-center item-a w-5">
                                    <input checked class="magic-radio" type="checkbox" name="cb" id="certificate-id2" data-value="0"/>
                                    <label for="certificate-id2">身份证 / ID</label>
                                </div>
                                <div class="cb-item v-center item-b w-7">
                                    <input class="magic-radio" type="checkbox" name="cb" id="certificate-passport2" data-value="1"/>
                                    <label for="certificate-passport2">护照 / Passport</label>
                                </div>
                                <div class="tips item-b w-5">
                                    <!-- <span>（必填 required）</span> -->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layout-item-ab desc-text">
                    <div class="item-a w-3">
                        <span class="desc">证件号 / Number</span>
                    </div>
                    <div class="item-b w-7">

                        <div class="layout-item-ab text">
                            <div class="text-input item-a w-7">
                                <input type="text" id="number-2">
                            </div>
                            <div class="tips item-b w-5">
                                <span>（必填 required）</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layout-item-ab desc-text">
                    <div class="item-a w-3">
                        <span class="desc">国籍 / Nationality</span>
                    </div>
                    <div class="item-b w-7">

                        <div class="layout-item-ab text">
                            <div class="text-input item-a w-7">
                                <input type="text" id="nationality-2">
                            </div>
                            <div class="tips item-b w-5">
                                <span>（必填 required）</span>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="layout-item-ab desc-text">
                    <div class="item-a w-3">
                        <span class="desc">职务 / Position</span>
                    </div>
                    <div class="item-b w-7">

                        <div class="layout-item-ab text">
                            <div class="text-input item-a w-7">
                                <input type="text" id="position-2">
                            </div>
                            <div class="tips item-b w-3">
                                <!--<span>（必填）</span>-->
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layout-item-ab desc-cb-group">
                    <div class="item-a w-3">
                        <span class="desc">称谓 / Gender</span>
                    </div>
                    <div class="item-b w-7">
                        <div class="layout-item-ab text cb-group" id="appellation-2">
                            <div class="cb-row">
                                <div class="cb-item v-center item-a w-5">
                                    <input checked class="magic-radio " type="checkbox" name="cb" id="sex-m-2" data-value="0"/>
                                    <label for="sex-m-2">先生 Mr</label>
                                </div>
                                <div class="cb-item v-center item-b w-7">
                                    <input class="magic-radio " type="checkbox" name="cb" id="sex-w-2" data-value="1"/>
                                    <label for="sex-w-2">女士 Mrs / Miss</label>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layout-item-ab desc-text">
                    <div class="item-a w-3">
                        <span class="desc">姓名 / Name</span>
                    </div>
                    <div class="item-b w-7">

                        <div class="layout-item-ab text">
                            <div class="text-input item-a w-7">
                                <input type="text" id="name-3">
                            </div>
                            <div class="tips item-b w-5">
                                <span>（必填 required）</span>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layout-item-ab desc-cb-group">
                    <div class="item-a w-3">
                        <span class="desc">选择证件/ Certificates</span>
                    </div>
                    <div class="item-b w-7">
                        <div class="layout-item-ab text cb-group" id="certificate-3">
                            <div class="cb-row">
                                <div class="cb-item v-center item-a w-5">
                                    <input checked class="magic-radio" type="checkbox" name="cb" id="certificate-id3" data-value="0"/>
                                    <label for="certificate-id3">身份证 / ID</label>
                                </div>
                                <div class="cb-item v-center item-b w-7">
                                    <input class="magic-radio" type="checkbox" name="cb" id="certificate-passport3" data-value="1"/>
                                    <label for="certificate-passport3">护照 / Passport</label>
                                </div>
                                <div class="tips item-b w-5">
                                    <!-- <span>（必填 required）</span> -->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layout-item-ab desc-text">
                    <div class="item-a w-3">
                        <span class="desc">证件号 / Number</span>
                    </div>
                    <div class="item-b w-7">

                        <div class="layout-item-ab text">
                            <div class="text-input item-a w-7">
                                <input type="text" id="number-3">
                            </div>
                            <div class="tips item-b w-5">
                                <span>（必填 required）</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layout-item-ab desc-text">
                    <div class="item-a w-3">
                        <span class="desc">国籍 / Nationality</span>
                    </div>
                    <div class="item-b w-7">

                        <div class="layout-item-ab text">
                            <div class="text-input item-a w-7">
                                <input type="text" id="nationality-3">
                            </div>
                            <div class="tips item-b w-5">
                                <span>（必填 required）</span>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layout-item-ab desc-text">
                    <div class="item-a w-3">
                        <span class="desc">职务 / Position</span>
                    </div>
                    <div class="item-b w-7">

                        <div class="layout-item-ab text">
                            <div class="text-input item-a w-7">
                                <input type="text" id="position-3">
                            </div>
                            <div class="tips item-b w-3">
                                <!--<span>（必填）</span>-->
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layout-item-ab desc-cb-group">
                    <div class="item-a w-3">
                        <span class="desc">称谓 / Gender</span>
                    </div>
                    <div class="item-b w-7">
                        <div class="layout-item-ab text cb-group" id="appellation-3">
                            <div class="cb-row">
                                <div class="cb-item v-center item-a w-5">
                                    <input checked class="magic-radio " type="checkbox" name="cb" id="sex-m-3" data-value="0"/>
                                    <label for="sex-m-3">先生 Mr</label>
                                </div>
                                <div class="cb-item v-center item-b w-7">
                                    <input class="magic-radio " type="checkbox" name="cb" id="sex-w-3" data-value="1"/>
                                    <label for="sex-w-3">女士 Mrs / Miss</label>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="add-less button ">
                    <span class="ico">-</span>
                    <span class="text v-center">收起</span>
                </div>
            </div>

            <div class="layout-item-ab desc-text">
                <div class="item-a w-3">
                    <span class="desc">公司 / Company</span>
                </div>
                <div class="item-b w-7">
                    <div class="layout-item-ab text">
                        <div class="text-input item-a w-7">
                            <input type="text" class="company" id="company">
                        </div>
                        <div class="tips item-b w-5">
                            <span>（必填 required）</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 产业 -->
            <div class="layout-item-ab desc-cb-group for-industry" >
                <div class="item-a w-3">
                    <span class="desc">所属产业 / Industry</span>
                </div>
                <div class="item-b w-7">
                    <div class="layout-item-ab text cb-group" id="industry">
                        <div class="cb-row">
                            <div class="cb-item w-10">
                                <input checked class="magic-radio " type="checkbox" id="industry-1" data-value="1">
                                <label for="industry-1">信息产业 Information Technology</label>
                            </div>
                        </div>
                        <div class="cb-row">
                            <div class="cb-item w-10">
                                <input class="magic-radio " type="checkbox" id="industry-2" data-value="2">
                                <label for="industry-2">时尚产业 Fashion</label>
                            </div>
                        </div>
                        <div class="cb-row">
                            <div class="cb-item w-10">
                                <input class="magic-radio " type="checkbox" id="industry-3" data-value="3">
                                <label for="industry-3">环保产业 Environmental Protection</label>
                            </div>
                        </div>
                        <div class="cb-row">
                            <div class="cb-item w-10">
                                <input class="magic-radio " type="checkbox" id="industry-4" data-value="4">
                                <label for="industry-4">金融产业 Financial</label>
                            </div>
                        </div>
                        <div class="cb-row">
                            <div class="cb-item w-10">
                                <input class="magic-radio " type="checkbox" id="industry-5" data-value="5">
                                <label for="industry-5">健康产业 Healthcare</label>
                            </div>
                        </div>
                        <div class="cb-row">
                            <div class="cb-item w-10">
                                <input class="magic-radio " type="checkbox" id="industry-6" data-value="6">
                                <label for="industry-6">旅游产业 Tourism</label>
                            </div>
                        </div>
                        <div class="cb-row">
                            <div class="cb-item w-10">
                                <input class="magic-radio " type="checkbox" id="industry-7" data-value="7">
                                <label for="industry-7">高端装备制造产业 High-end Equipment Manufacturing</label>
                            </div>
                        </div>
                        <div class="cb-row">
                            <div class="cb-item w-10">
                                <input class="magic-radio " type="checkbox" id="industry-8" data-value="8">
                                <label for="industry-8">文创产业 Culture and Creative Induetries</label>
                            </div>
                        </div>
                        <div class="cb-row">
                            <div class="cb-item w-10">
                                <input class="magic-radio " type="checkbox" id="industry-9" data-value="0">
                                <label for="industry-9">其他产业 Others</label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layout-item-ab desc-text">
                <div class="item-a w-3">
                    <span class="desc">详细地址 / Address</span>
                </div>
                <div class="item-b w-7">
                    <div class="layout-item-ab text">
                        <div class="text-input item-a w-7">
                            <input type="text" class="company" id="address">
                        </div>
                        <div class="tips item-b w-3">
                            <!--<span>（必填）</span>-->
                        </div>
                    </div>
                </div>
            </div>

            <div class="layout-item-ab desc-text">
                <div class="item-a w-3">
                    <span class="desc">邮政编码 / Postcode</span>
                </div>
                <div class="item-b w-7">
                    <div class="layout-item-ab text">
                        <div class="text-input item-a w-7">
                            <input type="text" class="company" id="postcode">
                        </div>
                        <div class="tips item-b w-3">
                            <!--<span>（必填）</span>-->
                        </div>
                    </div>
                </div>
            </div>

            <div class="layout-item-ab desc-text">
                <div class="item-a w-3">
                    <span class="desc">电话号码 / Tel</span>
                </div>
                <div class="item-b w-7">
                    <div class="layout-item-ab text">
                        <div class="text-input item-a w-7">
                            <input type="text" class="company" id="tel">
                        </div>
                        <div class="tips item-b w-3">
                            <!--<span>（必填）</span>-->
                        </div>
                    </div>
                </div>
            </div>

            <div class="layout-item-ab desc-text">
                <div class="item-a w-3">
                    <span class="desc">手机号码 / Mobile</span>
                </div>
                <div class="item-b w-7">
                    <div class="layout-item-ab text">
                        <div class="text-input item-a w-7">
                            <input type="text" class="company" id="mobile">
                        </div>
                        <div class="tips item-b w-5">
                            <span>（必填 required）</span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layout-item-ab desc-text">
                <div class="item-a w-3">
                    <span class="desc">邮箱 / E-mail</span>
                </div>
                <div class="item-b w-7">
                    <div class="layout-item-ab text">
                        <div class="text-input item-a w-7">
                            <input type="text" class="company" id="e-mail">
                        </div>
                        <div class="tips item-b w-5">
                            <span>（必填 required）</span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layout-item-ab desc-text">
                <div class="item-a w-3">
                    <span class="desc">备注 / Note</span>
                </div>
                <div class="item-b w-7">
                    <div class="layout-item-ab text">
                        <div class="text-input item-a w-7">
                            <input type="text" class="company" id="note">
                        </div>
                        <div class="tips item-b w-3">
                            <!--<span>（必填）</span>-->
                        </div>
                    </div>
                </div>
            </div>

            <div class="layout-item-ab desc-text for-verify">
                <div class="item-a w-3">
                    <span class="desc">验证码 / Verification</span>
                </div>
                <div class="item-b w-7">
                    <div class="layout-item-ab text">
                        <div class="text-input item-a w-3">
                            <input type="text" class="company" id="verify">
                        </div>
                        <div class="item-b w-3 code verify-code" id="code">
                            <img id="verify-img" src="" style="width: 100%;height: 100%;">
                        </div>
                        <div class="tips item-b w-5">
                            <span>（必填 required）</span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layout-blank40"></div>

            <div class="layout-item-ab desc-text for-submit">
                <div class="item-a w-3">
                    <!--<span class="desc">备注 / Note</span>-->
                </div>
                <div class="item-b w-7">
                    <div class="layout-item-ab text">
                        <div class="item-a w-5">
                            <button class="submit">提交 / submit</button>
                        </div>
                        <div class="item-b w-5">
                            <button class="reset">重填 / rewrite</button>
                        </div>
                    </div>
                </div>
            </div>
            <div style="text-align: center;font-size:0.9rem">
                <span>Copyright ZJITS. All Rights Received.</span>
            </div>
            <div class="layout-blank40"></div>
            <div class="layout-blank40"></div>
        </div>
    </div>
</div>

<nav class="nav-group ">
    <div class="nav-item home">
        <div class="text h-center v-center">
            <p>首页</p>
            <p>HOME</p>
        </div>
    </div>
    <div class="nav-item agenda">
        <div class="text h-center v-center">
            <p>论坛议程</p>
            <p>THE AGENDA</p>
        </div>
    </div>
    <div class="nav-item guest">
        <div class="text h-center v-center">
            <p>演讲嘉宾</p>
            <p>SPEAKERS</p>
        </div>
    </div>
    <div class="nav-item active register">
        <div class="text h-center v-center">
            <p>参会注册</p>
            <p>REGISTER</p>
        </div>
    </div>
</nav>

<script src="/Public/projects/activity/mobile/jquery-1.11.3/jquery.min.js"></script>
<script src="/Public/projects/activity/mobile/js/common.js"></script>

<script>
    $(function () {
        $(".cb-group").tap(function (e) {
            var $this = $(e.target);
            if($this.is(".magic-radio+label")){
                var $radios = $(".magic-radio", e.currentTarget);
                for(var i=$radios.length-1;i>=0; i--){
                    if(this === $radios[i]) continue;
                    $radios[i].checked = false;
                }
            }
        });

        var isSubmitVisible = false;
        function getInputValue(selector , needCheck ,type,msg) {
            if(!isSubmitVisible)return;
            var $el = $(selector);
            if($el.length==0){
                ns.log("err " + selector+" not find.");
                isSubmitVisible = false;
            }
            var val = $el.val();
            if(needCheck){
                switch(type){
                    case 'normal':
                        if($.isEmptyObject(val)){
                            alert(msg);
                            isSubmitVisible = false;
                        }
                        break;
                    case 'mobile':
                    case 'email':
                        if(!ns.verify(type ,val)){
                            alert(msg);
                            isSubmitVisible = false;
                        }
                        break;
                    case 'verify':
                        if($.isEmptyObject(val) || val.length != 5){
                            alert(msg);
                            isSubmitVisible = false;
                        }
                        break;
                    default:
                        ns.log("err: unknown type");
                        alert(msg);
                        isSubmitVisible = false;
                        break;
                }
            }
            return val;
        }
        function getCheckboxValue(selector ) {
            if(!isSubmitVisible)return;
            var $el = $(selector);
            if($el.length==0){
                ns.log("err " + selector+" not find.");
                isSubmitVisible = false;
            }
            if(!$el.is(".cb-group")){
                ns.log("err " + selector+" is not checkbox group.");
                isSubmitVisible = false;
            }
            return $el.find(".magic-radio:checked").attr("data-value");
        }

        var contextId = ns.getLocationParams()["id"];

        $("input[type=text]").on('focus',function () {
            var viewTop = $(window).scrollTop(),
                viewBottom = viewTop + window.innerHeight;
            var elementTop = $(this).offset().top, // $element是保存的input
                elementBottom = elementTop + $(this).height();
            if(elementBottom > viewBottom)
                $(window).scrollTop(elementBottom - viewBottom); // 调整value
        });

        $("button.reset").tap(function () {
            ns.windowFresh();
        });

        function bindCheck(vals , msgs){
            var isBind = 0 , errIdx = -1 ,len = vals.length;
            vals.forEach(function(e ,i){
                var isEmpty = $.isEmptyObject(e);
                if(!isEmpty){
                    isBind++;
                }
                else if(errIdx == -1){
                    errIdx = i;
                }
            });
            if(isBind > 0 && isBind < len){
                alert(msgs[errIdx]);
                return false;
            }
            return true;
        }

        $("button.submit").tap(function () {
            isSubmitVisible = true;
            var
                    id = contextId
                    ,name = getInputValue('#name-1', true,"normal","请填写姓名！")
                    ,certificate1 = getCheckboxValue("#certificate-1", true,"normal","请选择证件类别")
                    ,number1 = getInputValue("#number-1", true,"normal","请填写证件号！")
                    ,nationality1 = getInputValue("#nationality-1", true,"normal","请填写国籍！")
                    ,position = getInputValue('#position-1')
                    ,appellation = getCheckboxValue('#appellation-1')
                    ,ext = [
                        getInputValue('#name-2'),
                        getCheckboxValue("#certificate-2"),
                        getInputValue("#number-2"),
                        getInputValue("#nationality-2"),
                        getInputValue('#position-2'),
                        getCheckboxValue('#appellation-2'),
                        getInputValue('#name-3'),
                        getCheckboxValue("#certificate-3"),
                        getInputValue("#number-3"),
                        getInputValue("#nationality-3"),
                        getInputValue('#position-3'),
                        getCheckboxValue('#appellation-3')
                    ]
                    ,company = getInputValue('#company')
                    ,industry = getCheckboxValue('#industry')
                    ,address = getInputValue('#address')
                    ,postcode = getInputValue('#postcode')
                    ,tel = getInputValue('#tel')
                    ,mobile = getInputValue('#mobile', true ,"normal","手机号码填写不正确！")
                    ,email = getInputValue('#e-mail', true,"email","邮箱填写不正确！")
                    ,note = getInputValue('#note')
                    ,verifyCode = getInputValue('#verify', true,"verify","验证码填写不正确！")
                    ;
            if(!isSubmitVisible)return;

            if(!bindCheck(
                [ext[0],ext[2],ext[3]],
                ["请填写可选项中第一位的姓名！","请填写可选项中第一位的证件号！","请填写可选项中第一位的国籍！"])
            ){
                return;
            }

            if(!bindCheck(
                [ext[6],ext[8],ext[9]],
                ["请填写可选项中第二位的姓名！","请填写可选项中第二位的证件号！","请填写可选项中第二位的国籍！"])
            ){
                return;
            }

            ns.ajax({
                url: "register",
                data:{
                    id:id,
                    name:name,
                    position:position,
                    appellation:appellation,
                    ext:ext.join("|"),
                    company:company,
                    industry:industry,
                    address:address,
                    postcode:postcode,
                    telephone:tel,
                    mobile:mobile,
                    email:email,
                    note:note,
                    code:verifyCode,
                    card_type:certificate1,
                    card_number:number1,
                    country:nationality1
                },
                success: function (result) {
                    alert(result.result);
                    if(result.status == 1){
                        ns.windowFresh();
                    }
                }
            });
        });

        $(".option-chunk").hide();
        $(".button.add-more").tap(function () {
            $(".option-chunk").show();
            $(".button.add-more").hide();
        });
        $(".button.add-less").tap(function () {
            $(".option-chunk").hide();
            $(".button.add-more").show();
        });

        $(".nav-item.home").tap(function () {
            ns.navigate("first?id="+contextId);
        });
        $(".nav-item.agenda").tap(function () {
            ns.navigate("agenda?id="+contextId);
        });
        $(".nav-item.guest").tap(function () {
            ns.navigate("guest?id="+contextId);
        });
        $(".nav-item.register").tap(function () {
            ns.navigate("index?id="+contextId);
        });

        var g_index = 0;
        function updateVerifyImg() {
            $("#verify-img").attr("src",ns.genServerApiUrl("getVerify?v=") + (g_index++) );
        }
        $(".verify-code").tap(function () {
            updateVerifyImg();
        });
        updateVerifyImg();
    });
</script>
<include file="Activity/wshare" />
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?80e42c68052dc7b0d359cd50f98083d3";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>